//package com.itools.core.com.itools.config;
//
//import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.com.itools.config.annotation.method.configuration.EnableGlobalMethodSecurity;
//import org.springframework.security.com.itools.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.com.itools.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.com.itools.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//import org.springframework.security.crypto.password.PasswordEncoder;
//
//@Configuration
//@EnableWebSecurity(debug = true)
//@EnableGlobalMethodSecurity(prePostEnabled = true)
//@EnableOAuth2Sso
//public class ClientWebsecurityConfigurer extends WebSecurityConfigurerAdapter {
//    @Bean
//    public PasswordEncoder passwordEncoder() {
//        return new BCryptPasswordEncoder();
//    }
//
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http
//            .antMatcher("/**")
//            .authorizeRequests()
//            .antMatchers("/oauth/**","/login/**","/logout/**").permitAll()
//            .anyRequest().authenticated();
//    }
//}
